/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$(document).ready(function(){
  request_bind('search_client', function(){
    tag_search_row_click('c', function(){
      var id = $(this).data("id");
      var name = $(this).children(".client-firstname").text();
      redirectWithResult({
        id:id, 
        name:name
      });
    });
  });
   
  request_bind('', function(){
    tag_search_row_click('c', function(){
      var id = $(this).data("id");
      window.location = "get.jsp?id=" + id; 
    });
  });
  
  tag_search_search('c');
});

